//轮播图
(function($, doc){
	$.init({
		statusBarBackground: '#f7f7f7'
	});
		//获得slider插件对象
	var gallery = mui('.mui-slider');
	gallery.slider({
	  interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
	});
}(mui, document));

mui.plusReady(function () {
	//(过滤)搜索
	mui('.search')[0].addEventListener('tap', function () {
		var wv = plus.webview.create('search.html', 'search', {});
		wv.show('pop-in');
	})
	
	//今日特惠
	mui('#todaySpecial')[0].addEventListener('tap', function () {
		var wv = plus.webview.create('todaySpecial.html', 'todaySpecial', {});
		wv.show('pop-in');
	})
	//公寓短租
	mui('#apartMent')[0].addEventListener('tap', function () {
		var wv = plus.webview.create('apartMent.html', 'apartMent', {});
		wv.show('pop-in');
	})
	//温馨如家
	mui('#sweetHome')[0].addEventListener('tap', function () {
		var wv = plus.webview.create('sweetHome.html', 'sweetHome', {});
		wv.show('pop-in');
	})
	
})

